package String2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-10
 * Time: 17:56
 */
public class demo8 {
    public static void main(String[] args) {
        String str = "     abcd  bcdes     ";
        System.out.println(str);
        String ret = str.trim();
        System.out.println(ret);
    }
}
